import { EntityId, PageQueryParams } from '@/services'

export interface UserPageQueryParams extends Partial<PageQueryParams> {
  ids?: EntityId[]
  searchText?: string
  gender?: string
  enabled?: boolean
  locked?: boolean
  groupId?: number
  bizGroupCode?: string
  roleNameOrCode?: string
  roleCodes?: string[]
  types?: string[]
}

export interface User {
  id: EntityId
  nickname: string //姓名

  type: string
  avatar: string //头像
  gender: string //性别
  phone: string //联系电话
  enabled: boolean //是否启用
  locked: boolean //是否锁定
  createTime: string //创建时间
  /*  roles?: Role[];
    groups?: Group[];
    auths?: Auth[];*/
  description: string //备注
}

export interface User_Modify {
  id: EntityId
  nickname: string //姓名
  type: string
  avatar: string //头像
  gender: string //性别
  phone: string //联系电话
  description: string //备注
}
